lisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:21:24 +0000 (10:21 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 17 Sep 2013 10:21:24 +0000 (10:21 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-decode.el

index 944d297678f22ac4a48da7195f05e229a2824e1b..0b513e49337b67324d88b560f865cfabeed0d53e 100644 (file)
@@ -1,5 +1,7 @@
 2013-09-17  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag.
+
        * message.el (message-display-completion-list): Abolish.
        (message-completion-in-region): Use display-completion-list.
 
index 28d930b55f7f57e950f9dead989c384021382a76..07e66b30e58310e436ac1d62fccd67cc02b5e032 100644 (file)
@@ -1415,7 +1415,7 @@ Return t if meta tag is added or replaced."
        (goto-char (point-min))
        (if (re-search-forward "\
 <meta\\s-+http-equiv=[\"']?content-type[\"']?\\s-+content=[\"']\
-text/\\(\\sw+\\)\\(?:\;\\s-*charset=\\(.+\\)\\)?[\"'][^>]*>" nil t)
+text/\\(\\sw+\\)\\(?:\;\\s-*charset=\\([^\"'>]+\\)\\)?" nil t)
            (if (and (not force-charset)
                     (match-beginning 2)
                     (string-match "\\`html\\'" (match-string 1)))